package com.javaone;


public class Demo6 {
    public static void main(String[] args) {
       /* Scanner scanner = new Scanner(System.in);
        System.out.println("请输入用户名：");
        String uName = scanner.next();
        System.out.println("请输入密码：");
        String password = scanner.next();
        System.out.println(uName==("admin")); //admin
        System.out.println(password=="123453");*/

        String str = new String("admin");
        String str1 = str;
        System.out.println(str==str1);

    }
}
